<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>overflow属性</title>
  </head>
  <style>
    /* 
    一.overflow属性
      1.visible：默认值，可见
      2.hidden:隐藏
      3.scroll：有滚动条
      4.auto：自动根据内容是否溢出来决定是否提供滚动机制
   二.overflow-x和overflow-y 
     */
    .content {
      width: 1200px;
      height: 600px;
      background-color: #f00;
      overflow: auto
    }
  </style>

  <body>
    <div class="content">
      <img src="../img/4.jpg" alt="">
    </div>
  </body>

</html>